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BX,MAAO,GAAF,OAAKwB,EAAAA,GAAL,YAAiBX,EAAMY,QAC5BvB,QAASkB,EAAWZ,YAGtB,QAAC,EAAiBY,M,uBClCnBM,OAAOC,SAAWD,OAAOC,UAAY,IAAIR,KAAK,CAC7C,0BACA,WACE,OAAO,EAAQ,W","sources":["webpack://_N_E/./src/components/share/ShareHeader.tsx","webpack://_N_E/./src/components/share/ShareLayout.tsx","webpack://_N_E/./src/components/storyDetail/summary/StoryDescription.tsx","webpack://_N_E/./src/components/share/ShareContent.tsx","webpack://_N_E/./src/components/share/story/StorySummary.tsx","webpack://_N_E/./src/pages/share/story/[storyUid].tsx","webpack://_N_E/?1176"],"sourcesContent":["import React from 'react';\nimport useTranslation from 'next-translate/useTranslation';\nimport Link from 'next/link';\nimport { useRouter } from 'next/router';\nimport { css } from '@emotion/react';\nimport theme from '@styles/theme';\nimport { LogotypeMainIcon } from 'public/assets';\nimport { openOldDeepLink } from '@common/utils';\n\nimport { OLD_DEEP_LINK } from '@common/values';\n\nconst ShareHeader = () => {\n const { t } = useTranslation();\n const router = useRouter();\n\n const onClickApp = () => {\n openOldDeepLink({ t, router, deepLink: OLD_DEEP_LINK });\n };\n\n return (\n <>\n \n \n );\n};\n\nconst container = css`\n position: fixed;\n top: 0;\n display: flex;\n justify-content: space-between;\n min-height: 4.5em;\n background: ${theme.colors.white};\n width: 800px;\n align-items: center;\n padding: 0 1em;\n z-index: 2;\n\n @media screen and (max-width: ${theme.devices.mobile}) {\n width: 100%;\n }\n\n .button {\n height: 2.25em;\n cursor: pointer;\n padding: 0.5em 0.9em;\n font: ${theme.font.body1Normal};\n background: ${theme.colors.white};\n color: ${theme.colors.primary500};\n border: 0.0625em solid ${theme.colors.primary500};\n border-radius: 0.375em;\n }\n\n .logo {\n cursor: pointer;\n width: 9.1875em;\n height: 3.125em;\n\n @media (max-width: ${theme.devices.mobile}) {\n width: 8.26875em;\n height: 2.25em;\n }\n }\n`;\n\nexport default ShareHeader;\n","import React, { ReactElement } from 'react';\nimport { NextSeo } from 'next-seo';\nimport { css } from '@emotion/react';\nimport theme from '@styles/theme';\n\nimport ShareHeader from './ShareHeader';\n\ninterface ILayout {\n head: {\n title: string;\n description: string;\n ogTitle: string;\n ogDescription: string;\n ogUrl: string;\n ogImage: string;\n };\n children: ReactElement | ReactElement[];\n}\n\nconst ShareLayout = ({ children, head }: ILayout) => {\n return (\n <>\n \n \n
{children}
\n \n );\n};\n\nconst container = css`\n width: 800px;\n padding-top: 4em;\n background: ${theme.colors.white};\n\n .section-divider {\n width: 100%;\n height: 1em;\n background: ${theme.colors.gray200};\n }\n\n @media screen and (max-width: ${theme.devices.mobile}) {\n width: 100%;\n }\n`;\n\nexport default ShareLayout;\n","import { css } from '@emotion/react';\nimport theme from '@styles/theme';\nimport React from 'react';\n\ninterface IDescriptionProps {\n topic: string;\n targetAge: string;\n oneLineDesc: string;\n isWebNovel?: boolean;\n}\n\nconst Description = ({\n topic,\n targetAge,\n oneLineDesc,\n isWebNovel,\n}: IDescriptionProps) => {\n return (\n
\n

{oneLineDesc}

\n\n {topic}\n \n {targetAge}\n
\n );\n};\n\nconst container = css`\n padding: 0.75em 0;\n\n .badge {\n position: relative;\n top: -1px;\n\n display: inline-flex;\n margin-right: 8px;\n border-radius: 3px;\n background-color: ${theme.colors.primary700};\n padding: 0.1875em 0.375em;\n\n font-weight: 600;\n font-size: 11px;\n line-height: 13px;\n letter-spacing: -0.3px;\n\n color: ${theme.colors.white};\n }\n\n .topic,\n .target-age {\n color: ${theme.colors.primary300};\n font: ${theme.font.body.caption};\n }\n\n .split-point {\n color: ${theme.colors.primary300};\n font: ${theme.font.body.caption};\n }\n\n .one-line-desc {\n padding-top: 0.5em;\n padding-bottom: 0.5rem;\n color: ${theme.colors.gray500};\n font: ${theme.font.body2Normal};\n line-height: 20px;\n white-space: pre-line;\n }\n`;\n\nexport default Description;\n","import React from 'react';\nimport useTranslation from 'next-translate/useTranslation';\nimport { css } from '@emotion/react';\nimport theme from '@styles/theme';\nimport { LogotypeColorImg, VariousEnding } from 'public/assets';\n\nconst ShareContent = () => {\n const { t } = useTranslation();\n return (\n
\n
\n
\n
\n \n
\n

\n {t('share_screen_description_interactive_more_funny_than_novel')}\n

\n

\n {t('share_screen_description_become_protagonist_of_story')}\n

\n
\n\n
\n\n
\n

\n {t('share_screen_description_well_made_interactive_story')}\n

\n\n

\n \n {t('share_screen_description_interactive_more_funny_than_novel')}\n \n {t('share_screen_description_hellobot_and_storyplay')}\n

\n \n
\n
\n );\n};\n\nconst container = css`\n display: flex;\n flex-direction: column;\n align-items: center;\n margin: 1.25em 0;\n position: relative;\n white-space: pre-line;\n\n .background-gradient {\n position: absolute;\n width: 800px;\n height: 15em;\n background-image: linear-gradient(\n to bottom,\n #f3e8ff,\n rgba(243, 232, 255, 0)\n );\n z-index: 0;\n\n @media screen and (max-width: ${theme.devices.mobile}) {\n width: 100%;\n }\n }\n\n .various-background {\n position: absolute;\n left: 0;\n top: 30%;\n height: 275px;\n width: 141px;\n border-top-right-radius: 141px;\n border-bottom-right-radius: 141px;\n background-image: linear-gradient(\n to bottom,\n rgba(44, 204, 211, 0.15),\n rgba(44, 204, 211, 0)\n );\n z-index: 0;\n }\n\n .logo-wrapper {\n min-height: 30%;\n display: flex;\n justify-content: center;\n align-items: center;\n margin-top: 2em;\n }\n\n .title {\n font-size: 22px;\n font-weight: bold;\n letter-spacing: -0.8px;\n color: ${theme.colors.primary500};\n margin-bottom: 1.25em;\n text-align: center;\n }\n\n .content {\n font-size: 16px;\n line-height: 1.5;\n letter-spacing: -0.4px;\n color: ${theme.colors.gray600};\n text-align: center;\n }\n\n .bold-title {\n font-size: 22px;\n font-weight: bold;\n letter-spacing: -0.8px;\n text-align: center;\n margin-top: 1em;\n }\n\n .section-container {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n gap: 1em;\n margin: 2.25em 0;\n z-index: 1;\n }\n\n .various-ending {\n margin-top: 1.25em;\n height: 22em;\n width: 100%;\n\n @media screen and (max-width: ${theme.devices.mobile}) {\n height: 12em;\n }\n }\n`;\n\nexport default ShareContent;\n","import React from 'react';\nimport useTranslation from 'next-translate/useTranslation';\nimport { useRouter } from 'next/router';\nimport { css } from '@emotion/react';\nimport theme from '@styles/theme';\nimport SPImage from '@components/commons/image/SPImage';\nimport Description from '@components/storyDetail/summary/StoryDescription';\nimport { ShareStory } from '@customTypes/story';\nimport ShareContent from '../ShareContent';\n\nconst StorySummary = ({\n title,\n author,\n imageUrl,\n genre,\n age,\n summary,\n storyId,\n}: ShareStory) => {\n const { t } = useTranslation();\n const route = useRouter();\n const showWeb = () => {\n route.push(`/story/${storyId}`);\n };\n\n return (\n
\n
\n
\n
\n \n
\n
\n
\n
\n

{title}

\n

{author}

\n
\n
\n \n
\n \n
\n \n
\n
\n );\n};\n\nconst container = css`\n .content {\n padding: 1.25em 1.25em;\n }\n\n .title-wrapper {\n display: flex;\n align-items: flex-start;\n justify-content: space-between;\n padding: 1.25em 0;\n border-bottom: 1px solid ${theme.colors.gray300};\n\n .title-left {\n display: flex;\n flex-direction: column;\n\n .title {\n font: ${theme.font.title1};\n color: ${theme.colors.gray900};\n }\n\n .author {\n font: ${theme.font.body2Normal};\n color: ${theme.colors.gray600};\n margin-top: 0.75em;\n }\n }\n }\n\n .image-container {\n display: flex;\n flex-direction: column;\n align-items: center;\n position: relative;\n\n .thumbnail {\n position: relative;\n width: 20.9375rem;\n height: 31.375rem;\n\n img {\n image-rendering: auto;\n }\n }\n }\n\n .bottom-button {\n margin: 0 auto;\n padding: 0 1em;\n position: -webkit-sticky;\n position: sticky;\n bottom: 0px;\n z-index: 2;\n background-color: ${theme.colors.white};\n border-top: 1px solid ${theme.colors.gray300};\n }\n\n .button {\n margin: 1em auto;\n font-size: 1em;\n font-weight: bold;\n line-height: 1.5;\n letter-spacing: -0.4px;\n text-align: center;\n width: 100%;\n height: 3em;\n border-radius: 0.375em;\n color: ${theme.colors.white};\n background-color: ${theme.colors.primary500};\n cursor: pointer;\n }\n`;\n\nexport default StorySummary;\n","\n// @ts-ignore\n import __i18nConfig from '@next-translate-root/i18n'\n// @ts-ignore\n import __loadNamespaces from 'next-translate/loadNamespaces'\n// @ts-ignore\n \nimport React from 'react';\nimport { useRouter } from 'next/router';\nimport { addApolloState, initializeApollo } from '@lib/apollo';\nimport { GET_STORY_BY_SHARE_KEY } from '@api/story';\nimport { ShareStory, StoryByShareKey } from '@customTypes/story';\nimport { BASE_URL } from '@common/values';\n\nimport ShareLayout from '@components/share/ShareLayout';\nimport StorySummary from '@components/share/story/StorySummary';\n\ninterface IStoryShare {\n shareStory: ShareStory;\n}\n\nconst StoryShare = ({ shareStory }: IStoryShare) => {\n const route = useRouter();\n\n return (\n \n \n \n );\n};\n\n const _getServerSideProps = async (context: {\n params: { storyUid: string };\n}) => {\n const client = initializeApollo();\n\n try {\n const res = await client.query({\n query: GET_STORY_BY_SHARE_KEY,\n variables: {\n id: context.params.storyUid,\n },\n });\n\n const shareStory: ShareStory = {\n id: context.params.storyUid,\n title: res.data.getStoryByShareKey.name,\n author: res.data.getStoryByShareKey.authorName,\n imageUrl: res.data.getStoryByShareKey.coverImageLink\n ? res.data.getStoryByShareKey.coverImageLink\n : 'https://s3.ap-northeast-2.amazonaws.com/storyplay-prod/ImageFile/c1f7f3a5-79cb-45ff-97d8-fe534002bb4d',\n genre: res.data.getStoryByShareKey.topic,\n age: res.data.getStoryByShareKey.ageTarget,\n summary: res.data.getStoryByShareKey.desc,\n storyId: res.data.getStoryByShareKey.storyId,\n };\n\n return addApolloState(client, {\n props: { shareStory },\n });\n } catch (e) {\n return {\n notFound: true,\n };\n }\n};\n\nexport default StoryShare;\n\n\n// @ts-ignore\n export async function getServerSideProps(ctx) {\n// @ts-ignore\n let res = _getServerSideProps(ctx)\n// @ts-ignore\n if(typeof res.then === 'function') res = await res\n// @ts-ignore\n return {\n// @ts-ignore\n \n// @ts-ignore\n ...res,\n// @ts-ignore\n props: {\n// @ts-ignore\n ...(res.props || {}),\n// @ts-ignore\n ...(await __loadNamespaces({\n// @ts-ignore\n ...ctx,\n// @ts-ignore\n pathname: '/share/story/[storyUid]',\n// @ts-ignore\n loaderName: 'getServerSideProps',\n// @ts-ignore\n ...__i18nConfig,\n// @ts-ignore\n loadLocaleFrom: (l, n) => import(`@next-translate-root/locales/${l}/${n}`).then(m => m.default),\n// @ts-ignore\n }))\n// @ts-ignore\n }\n// @ts-ignore\n }\n// @ts-ignore\n }\n// @ts-ignore\n ","\n (window.__NEXT_P = window.__NEXT_P || []).push([\n \"/share/story/[storyUid]\",\n function () {\n return require(\"private-next-pages/share/story/[storyUid].tsx\");\n }\n ]);\n if(module.hot) {\n module.hot.dispose(function () {\n window.__NEXT_P.push([\"/share/story/[storyUid]\"])\n });\n }\n "],"names":["container","css","theme","t","useTranslation","router","useRouter","href","className","width","height","onClick","openOldDeepLink","deepLink","OLD_DEEP_LINK","children","head","title","description","openGraph","url","ogUrl","images","ogImage","topic","targetAge","oneLineDesc","isWebNovel","author","imageUrl","genre","age","summary","storyId","route","SPImage","src","alt","layout","priority","push","shareStory","ShareLayout","ogTitle","ogDescription","BASE_URL","asPath","window","__NEXT_P"],"sourceRoot":""}